package cn.sxt.clinic.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ${author}
 * @since 2020-07-02
 */
@TableName("t_patients")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Patients implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "patients_id", type = IdType.AUTO)
    private Long patientsId;

    private String patientsName;

    private String patientsIdcard;

    private String patientsGender;

    private Long patientsAge;

    private String patientsAddress;

    private String patientsAllergy;

    private LocalDate updateTime;

    private String patientsPhone;


    @TableField(exist = false)
    private PatientsCases patientsCases;

}
